package com.ws.q1.service;

import com.ws.q1.bean.HouTai;
import com.ws.q1.bean.User;

import java.util.List;

public interface HoutaiService {
    HouTai houtailogin(String name, String pass);

    boolean isUsernameExists(String name);

    int add(String name, String pass, String tou);

    List<HouTai> getUsersByName(String name);

    List<HouTai> getAllUsers();

    int deleteById(Integer id);

    HouTai huixian(Integer id);

    void update(Integer id, HouTai houtai);
}
